import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.stream.Collectors;

public class Test4 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "sasas,24", "ascas,5", "xascasc,6");
        list.stream().filter(s -> Integer.parseInt(s.split(",")[1])>=6 )
                .collect(Collectors.toList());


    }
}
